<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<jsp:useBean id="user" class="game.util.User" scope="session">
	<jsp:setProperty property="*" name="user" />
</jsp:useBean>
<c:if test="${empty user.name }">
	<jsp:forward page="index.jsp" />
</c:if>

<div>
	Felhasználónév:
	<c:out value="${user.name}" /> <br />
	
</div>